const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  css: {
    loaderOptions: {
      postcss: {
        postcssOptions: {
          // npm i postcss-px-to-viewport -D
          plugins: [
            [
              "postcss-px-to-viewport",
              {
                unitToConvert: "px",
                viewportWidth: 375,
                unitPrecision: 5,
                propList: ["*"],
                viewportUnit: "vw",
                fontViewportUnit: "vw",
                selectorBlackList: [],
                minPixelValue: 1,
                mediaQuery: false,
                replace: true,
                exclude: [],
                // landscape: false,
                // landscapeUnit: "vw",
                // landscapeWidth: 568,
              },
            ],
          ],
        },
      },
    },
  },
});
